﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZSZ.DTO;
using ZSZ.Model;

namespace ZSZ.IService
{
    public partial interface IPermissionService : IBaseService<Permission>
    {
        /// <summary>
        /// 权限名称是否存在
        /// </summary>
        /// <param name="permName"></param>
        /// <returns></returns>
        bool Exist(string name);

        PermissionDTO[] GetPermissions();

        PermissionDTO GetDTOById(long id);

        PermissionDTO[] GetPermissionByRoleId(long roleId);

        void Add(string name, string description, string controllerName, string actionName, string httpMethod);
        void Update(long id,string name, string description, string controllerName, string actionName, string httpMethod);

    }
}
